package com.xyrl.project.common.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyrl.project.common.store.entity.StoreAuth;
import com.xyrl.project.common.store.entity.StoreImage;
import com.xyrl.project.common.store.enu.StoreAuthStatus;
import com.xyrl.project.common.store.enu.StoreAuthType;
import com.xyrl.project.common.store.vo.StoreAuthVo;

import java.util.List;

/**
* @className StoreAuthService.java
* @company 重庆星纭融链科技公司
* @author 徐恩源
* @version 1.0
* @date 2019-12-27 11:25:42
* @Description 用户认证表service
*/
public interface StoreAuthService extends IService<StoreAuth> {
    /**
     * 人脸认证
     * @param storeId
     * @param salesId
     * @author 徐恩源
     * @date 2019-12-31 17:29:35
     */
    String faceAuth(Long storeId, Long salesId, List<Long> attIds, boolean isSalesUser);
    /**
     * 修改商户认证
     * @author 徐恩源
     * @date 2020-01-02 14:17:12
     * @param storeId
     * @param salesId
     * @param storeAuthType
     * @param storeAuthStatus
     */
    void updateStoreAuth(long storeId, Long salesId, StoreAuthType storeAuthType, StoreAuthStatus storeAuthStatus);
    /**
     * 修改商户认证
     * @author 徐恩源
     * @date 2020-01-02 14:17:12
     * @param storeId
     * @param salesId
     * @param storeAuthType
     * @param attaIds
     */
    void updateStoreAuth(long storeId, long salesId, StoreAuthType storeAuthType, Long[] attaIds);
    /***
     *  门店图片认证
     * @author 徐恩源
     * @date 2020-01-05 17:13:22
     * @param salesId
     * @param list
     */
    void updateStoreAuth(long salesId, long storeId, List<StoreImage> list);
    /**
     * 保存商户认证
     * @author 徐恩源
     * @date 2020-01-02 15:43:27
     * @param storeId
     */
    StoreAuth saveStoreAuth(long storeId);
    /**
     * 查询商户认证信息
     * @author 徐恩源
     * @date 2020-01-13 14:09:42
     * @param storeId
     * @param salesId
     */
    StoreAuthVo findStoreAuthVoByStoreId(long storeId, long salesId);
}
